<?php
require('includes/top.php');
$q_id = $_POST["q_id"];		
$answer = $_POST["answer"];

$sql="INSERT INTO expert_answer(`expert_ans`,`expert_question_id`) VALUES ('$answer', '$q_id')";
		//echo $sql;
$result=mysql_query($sql);
 if($result)
 {
header("location:viewexpertquestions.php");
 }
 else
 {
	 echo mysql_error();
 }

ob_flush();
?>
 